package com.ktjy.t382.ch01.mapper;

import com.ktjy.t382.ch01.pojo.BookManage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookManageMapper {
    public List<BookManage> getList(BookManage bookManage);

    public BookManage getById(Integer id);

    public int insert(BookManage bookManage);

    public int update(BookManage bookManage);

    public int delete(Integer id);

    //分页查询数据
    public List<BookManage> getPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize, @Param("name") String name);

    //查询总记录数
    public Long count();
}
